package com.example.secondhandspringboot;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMethod;

@SpringBootApplication
@MapperScan("com.example.secondhandspringboot.mapper")
@EnableTransactionManagement //开启注解方式的事务管理
@EnableScheduling //定时任务
@EnableCaching //开启注解式缓存
@Slf4j
public class SecondhandSpringbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(SecondhandSpringbootApplication.class, args);
        log.info("服务启动...");
    }

}
